import axios from 'axios';

export const requestLogin = params => { return axios.get("/api/PhoneBase/Login", params).then(res => res.data); };
export const GetTocken = params => { return axios.get("/api/Tocken/GetTocken", params).then(res => res.data); };
//通知公告
export const PublicNotice = params => { return axios.post("/api/PhoneBase/GetNoticePageData", params.params).then(res => res.data); };//列表
//企业数据
export const PermitInfoForEnterpriseUnid = params => { return axios.get("/api/Permit/GetPermitInfoForEnterpriseUnid",params).then(res => res.data); };
//快检数据
export const DetectionHiostoryData = params => { return axios.post("/api/PhoneBase/GetDetectionHiostoryData", params.params).then(res => res.data); };
//视频
export const Vedio= params => { return axios.get("/api/ExternalEquipment/GetCameraDataAndYSByEnterpriseUnid", params).then(res => res.data); };
//监管记录
export const CheckDataPageData = params => { return axios.post("/api/PhoneBase/GetCheckDataPageData", params.params).then(res => res.data); };
//食品留样(完成)
export const KeepSample= params => { return axios.post("/api/Dinner/GetPageData", params.params).then(res => res.data); };//列表
export const KeepSampledAdd = params => { return axios.post("/api/Dinner/Add", params.params).then(res => res.data); };//添加
export const KeepSampleUpdate = params => { return axios.post("/api/Dinner/Update ", params.params).then(res => res.data); };//修改
export const KeepSampleDelete = params => { return axios.get("/api/Dinner/Delete", params).then(res => res.data); };//删除
export const KeepSampleDetail = params => { return axios.get("/api/Dinner/GetFindById",params).then(res => res.data); };//详情
//获取原料类别
export const DemandWarehouseData= params => { return axios.get("/api/Dinner/DemandWarehouseData", params).then(res => res.data); };
//获取有效期数据
export const ShelfLife= params => { return axios.get("/api/Config_ShelfLife/DataBindNew", params).then(res => res.data); };
//供应商
export const CEKeep = params => { return axios.get("/api/Config_Supplier/DataBind",params).then(res => res.data); };
//进货
export const DemandCertificate= params => { return axios.post("/api/DemandCertificate/PageData", params.params).then(res => res.data); };//列表
export const DemandCertificateAdd= params => { return axios.post("/api/DemandCertificate/Add", params.params).then(res => res.data); };//添加
export const DemandCertificateDelete= params => { return axios.get("/api/DemandCertificate/Delete", params).then(res => res.data); };//删除
export const DemandCertificateUpdate= params => { return axios.post("/api/DemandCertificate/Update", params.params).then(res => res.data); };//删除

//企业人员列表
export const EnterprisePersonDataBind = params => { return axios.get("/api/PhoneBase/GetEnterprisePersonDataBind",params).then(res => res.data); };



